#include "OperatingModelPanel.h"
#include "PopulationSizePanel.h"
#include "SurveyParametersPanel.h"
#include "LifeHistoryPanel.h"

OperatingModelPanel::OperatingModelPanel(wxWindow *parent)
                   : wxPanel(parent, wxID_ANY)
{
  m_pPopulationSizePanel   = new PopulationSizePanel(this);
  m_pSurveyParametersPanel = new SurveyParametersPanel(this);
  m_pLifeHistoryPanel      = new LifeHistoryPanel(this);

  m_pBoxSizer = new wxBoxSizer(wxVERTICAL);
  m_pFlexGridSizer = new wxFlexGridSizer(OM_GRID_ROWS, OM_GRID_COLS, OM_GRID_VGAP, OM_GRID_HGAP);
  for(int col=0; col<OM_GRID_COLS; col++)
  {
    m_pFlexGridSizer->AddGrowableCol(col);
  }
  for(int row=0; row<OM_GRID_ROWS; row++){
    m_pFlexGridSizer->AddGrowableRow(row);
  }
  m_pFlexGridSizer->Add(m_pPopulationSizePanel, wxSizerFlags().Expand().Border(wxALL,BORDER_SIZE));
  m_pFlexGridSizer->Add(m_pSurveyParametersPanel, wxSizerFlags().Expand().Border(wxALL,BORDER_SIZE));
  m_pFlexGridSizer->Add(m_pLifeHistoryPanel, wxSizerFlags().Expand().Border(wxALL,BORDER_SIZE));
  m_pBoxSizer->Add(m_pFlexGridSizer, wxSizerFlags().Expand().Border(wxALL,BORDER_SIZE));
  SetAutoLayout(true);
  SetSizerAndFit(m_pBoxSizer);
}

OperatingModelPanel::~OperatingModelPanel()
{
}

BEGIN_EVENT_TABLE ( OperatingModelPanel, wxPanel )

END_EVENT_TABLE()
